﻿using MyWeb.Business.Base;
using MyWeb.Model;
using MyWeb.Model.Models;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyWeb.Business.System
{
    public interface IRoleService:IBaseBusiness<Role>
    {


        /// <summary>
        /// 分页查询
        /// </summary>
        /// <returns></returns>
        Task<List<Role>> GetPage(RefAsync<int> count, int page = 1,int pageSize = 50, string key = "");
        /// <summary>
        /// 编辑
        /// </summary>
        /// <param name="role"></param>
        /// <returns></returns>
        Task<bool> Edit(Role role);
        /// <summary>
        /// 删除
        /// </summary>
        /// <returns></returns>
        Task<bool> Remove(long id);
    }
}
